package com.xingkeduo.feign;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.xingkeduo.util.tool.ResponseMessage;

@EnableDiscoveryClient
@EnableFeignClients
@FeignClient(value = "business-user")
public interface ManageUserFeignService {

	// 查询用户信息-主要是2线用户信息:用户id，用户姓名，部门id，部门名称
	@RequestMapping("/{urlParam}")
	ResponseMessage doGet(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);


	// 根据用户手机号，昵称，用户id 返回客户数据，主要包含用户ID，用户昵称（有微信昵称下优先返回微信昵称），用户手机号
	@RequestMapping("/consumer/getdetail/{urlParam}")
	String queryUserByNameOrMobileOrId(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);

	@RequestMapping("/consumer/getid/{urlParam}")
	String queryUserListByUserId(@PathVariable("urlParam") @RequestParam(value = "urlParam") String urlParam);

	 //根据id查询发型师信息
    @RequestMapping("/craftsman/get/{param}")
    String queryCraftsmanById(@PathVariable("param") @RequestParam(value = "param") String param);

}
